package com.ruoqing.core.exception;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
	* @author YaoXian
	* @title: SmsException
	* @projectName ruoxi-blog
	* @description: 若兮微服务 - 核心模块 - 通知服务异常处理类
	* @date 2020-12-01 15:09
	*/
@Data
@AllArgsConstructor
@NoArgsConstructor
public class SmsException extends RuntimeException {
		
		private String status;
		
		private String msg;
		
		private String phoneNumber;
		
		public static SmsException buildSmsException(String status,String msg){
				SmsException smsException = new SmsException();
				smsException.setStatus(status);
				smsException.setMsg(msg);
				return smsException;
		}
}
